##################################################################
# File : /lua/maui/frame.lua
# Description : Frame control
# Author : GPG
##################################################################

local Control = import('control.lua').Control

Frame = Class(moho.frame_methods, Control) {
	--[[
	Methods:
		GetTargetHead()
		GetTopmostDepth() # returns the topmost depth value regardless of hiding
		SetTargetHead()
	--]]

    __init = function(self, debugname)
        InternalCreateFrame(self)
        self.Depth:Set(function() return 0 end)
        if debugname then
            self:SetName(debugname)
        end
    end,

    OnInit = function(self)
        Control.OnInit(self)
    end,
}

